<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:a4j="http://richfaces.org/a4j"
	xmlns:rich="http://richfaces.org/rich">
	
<ui:composition template="template.xhtml">

	<ui:define name="body">

		<h:panelGrid id="tabelaExterna" columns="1">
			<rich:dataTable value="#{stakeHolderAction.stakeHolders}" var="item"
				rows="20" rowClasses="odd-row, even-row" styleClass="stable">

				<rich:column>
					<f:facet name="header">Id</f:facet>
					<h:outputText value="#{item.id}" />
				</rich:column>

				<rich:column>
					<f:facet name="header">Nome</f:facet>
					<h:outputText value="#{item.nome}" />
				</rich:column>
				<rich:column>
					<f:facet name="header">Cargo</f:facet>
					<h:outputText value="#{item.cargo}" />
				</rich:column>

			</rich:dataTable>
			

			<br /><br /><br />			

			<h:commandButton value="Adicionar" action="#{stakeHolderAction.adicionar}" styleClass="Botao1"/>
			
			
		</h:panelGrid>
	</ui:define>
</ui:composition>

</html>